<?php /* Smarty version 2.6.26, created on 2009-12-14 15:03:54
         compiled from global/admin/hook_single.tpl */ ?>
<p class='statrow' id='hook-box-<?php echo $this->_tpl_vars['hook']['id']; ?>
'>
	<b>ID:</b> <?php echo $this->_tpl_vars['hook']['id']; ?>
<br />
	<b>Type:</b> <?php echo $this->_tpl_vars['hook']['type']; ?>
<br />
	<b>Related Position:</b> <?php echo $this->_tpl_vars['hook']['position']; ?>
<br />
	<b>Related File:</b> <?php echo @HOOKS_PATH; ?>
<?php echo $this->_tpl_vars['hook']['file']; ?>
<br />
	<a href='<?php echo @WEB_PATH; ?>
/admin.php?app=global&amp;controller=config&amp;act=delHook&amp;id=<?php echo $this->_tpl_vars['hook']['id']; ?>
' class='zurb tiny red' id='hook-link-<?php echo $this->_tpl_vars['hook']['id']; ?>
'>
		<img src='<?php echo @WEB_PATH; ?>
/public/img/icons/silk/delete.png' alt='' /> Delete Hook
	</a>
</p>
<script type="text/javascript">
$("#hook-link-<?php echo $this->_tpl_vars['hook']['id']; ?>
").removeAttr("href")
						  <?php echo '.click(function() {'; ?>

							$.get("admin.php?app=global&controller=config&act=delHook&id=<?php echo $this->_tpl_vars['hook']['id']; ?>
&ajax=1", function(data) <?php echo '{
								if(data == "true"){
									niceAlert("Hook deleted. Reload page to see results.", 2);
									'; ?>
$("#hook-box-<?php echo $this->_tpl_vars['hook']['id']; ?>
")<?php echo '.slideUp(250, function() {
										$(this).html("<span style=\'color:red;font-family:Trebuchet MS;font-size:13px;font-weight:normal\'><img src=\''; ?>
<?php echo @WEB_PATH; ?>
<?php echo '/public/img/icons/silk/cross.png\' alt=\'X\' /> Hook deleted. Reload page to see results.").slideDown();
										});{literal}
								}
								else {
									niceAlert(data, 1);
								}
							});
						});'; ?>

</script>